package com.exam.mapper;

import com.exam.entity.MultiQuestion;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.util.Optional;

@Repository
public interface MultiQuestionRepository extends JpaRepository<MultiQuestion, Long> {
    Page<MultiQuestion> findAll(Pageable pageable); // 分页查询所有

    Optional<MultiQuestion> findBySubjectAndQuestionAndAnswer(String subject, String question, String answer);
}
